package org.zhong.pointservice.Controller;



import org.springframework.web.bind.annotation.*;
import org.zhong.commonmodule.entity.Order;

@RestController
@RequestMapping(value = "/Point")
public class PointController {
    @GetMapping(value = "/test")
    public String test() {

        int b=3246;
        return "this is point-service";
    }

    @PostMapping(value = "/add")
    public String addPoint(@RequestBody Order order) {
        return "add point success!商品名称222：" ;
    }

    @PostMapping(value = "/add2")
    public String addPoint2(@RequestParam("productionName") String productionName) {
        Order order = new Order();
        order.setOderName(productionName);
        return "add point success!商品名称：22222222" + order.getOderName();
    }
}
